    </div>
    <?php
    
    $uri = uri_string();
    $url = preg_split("/[\/]+/", $uri);
    
    ?>
    <div id="subnav">
        <div id="subnav-container">
        <?php
        
        switch($url[0]) {
            case 'home':
                if($url[1] == 'notifications'){
                    echo '<span class="subnav-link-a">NOTIFICATIONS</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'home/notifications">NOTIFICATIONS</a>';
                }
                
                if($url[1] == 'friendRequest'){
                    echo '<span class="subnav-link-a">FRIEND REQUESTS</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'home/friendRequest">FRIEND REQUESTS</a>';
                }
                
                break;
            case 'account':
                if($url[1] == 'login') {
                    echo '<span class="subnav-link-a">LOGIN</span>';
                } else {
                    if($url[1] == 'profile') {
                    echo '<span class="subnav-link-a">PROFILE</span>';
                    } else {
                        echo '<a class="subnav-link-b" href="'.base_url().'account/profile?id='.$this->session->userdata('account_id').'">PROFILE</a>';
                    }
                    
                    if($url[1] == 'friends') {
                    echo '<span class="subnav-link-a">FRIENDS</span>';
                    } else {
                        echo '<a class="subnav-link-b" href="'.base_url().'account/friends?id='.$this->session->userdata('account_id').'">FRIENDS</a>';
                    }
                    
                    if($url[1] == 'research') {
                    echo '<span class="subnav-link-a">RESEARCHES</span>';
                    } else {
                        echo '<a class="subnav-link-b" href="'.base_url().'account/research?id='.$this->session->userdata('account_id').'">RESEARCHES</a>';
                    }
                }
                
                break;
            case 'admin':
                if($url[1] == 'akm'){
                    echo '<span class="subnav-link-a">ACCESS KEY MGT.</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'admin/akm">ACCESS KEY MGT.</a>';
                }
                
                if($url[1] == 'um'){
                    echo '<span class="subnav-link-a">USER MGT.</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'admin/um">USER MGT.</a>';
                }
                
                if($url[1] == 'rm'){
                    echo '<span class="subnav-link-a">RESEARCH MGT.</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'admin/rm/section">RESEARCH MGT.</a>';
                }
                
                if($url[1] == 'gm'){
                    echo '<span class="subnav-link-a">ROLE MGT.</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'admin/gm">ROLE MGT.</a>';
                }
                
                if($url[1] == 'reports'){
                    echo '<span class="subnav-link-a">REPORTS</span>';
                } else {
                    echo '<a class="subnav-link-b" href="'.base_url().'admin/reports">REPORTS</a>';
                }
        }
        
        ?>
        </div>
    </div>
</header>